PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Move

Move is an application command that moves an object or objects.

SYNTAX
move referenceToObject to referenceToLocation
PARAMETERS
referenceToObject
A reference to the object or objects to move. Class: Reference
referenceToLocation
A reference to the location to which to move the object or objects. Class: Reference
RESULT

A reference to the object that was moved.

Class: Reference

EXAMPLE
tell application "Finder"
    move file "StdLog" of startup disk ¬
        to folder "Saved Error Logs" of startup disk
end tell

tell document 1 of application "AppleWorks"
    move word 1 of text body to before paragraph 2 of text body
end tell

© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)